//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['The Bacon Brothers','Star Of The Desert Arena','Primm, NV','Saturday','6/22/2024','8:00 PM','6305403','The-Bacon-Brothers-6-22-2024'],['The Bacon Brothers','Coach House - Capistrano','San Juan Capistrano, CA','Friday','6/28/2024','8:00 PM','6295401','The-Bacon-Brothers-6-28-2024'],['The Bacon Brothers','The Canyon - Montclair','Montclair, CA','Saturday','6/29/2024','9:00 PM','6373555','The-Bacon-Brothers-6-29-2024'],['The Bacon Brothers','Libbey Bowl','Ojai, CA','Sunday','6/30/2024','7:00 PM','6377641','The-Bacon-Brothers-6-30-2024'],['The Bacon Brothers','Lynn Memorial Auditorium','Lynn, MA','Saturday','7/13/2024','8:00 PM','6386743','The-Bacon-Brothers-7-13-2024'],['The Bacon Brothers','Tarrytown Music Hall','Tarrytown, NY','Sunday','7/14/2024','7:00 PM','6387075','The-Bacon-Brothers-7-14-2024'],['The Bacon Brothers','Birchmere Music Hall','Alexandria, VA','Friday','7/19/2024','7:30 PM','6284308','The-Bacon-Brothers-7-19-2024'],['The Bacon Brothers','Birchmere Music Hall','Alexandria, VA','Saturday','7/20/2024','7:30 PM','6284309','The-Bacon-Brothers-7-20-2024'],['The Bacon Brothers','Batavia Downs - Trackside (Outdoors)','Batavia, NY','Friday','7/26/2024','4:00 PM','6185420','The-Bacon-Brothers-7-26-2024'],['Bourbon & Beyond: Tyler Childers, Zach Bryan, Dave Matthews Band & Neil Young - 4 Day Pass','Highland Festival Grounds at Kentucky Expo Center','Louisville, KY','Thursday','9/19/2024','TBD','5956614','Bourbon---Beyond--Tyler-Childers--Zach-Bryan--Dave-Matthews-Band---Neil-Young---4-Day-Pass-9-19-2024'],['The Bacon Brothers','Des Plaines Theatre','Des Plaines, IL','Friday','9/20/2024','8:00 PM','6342390','The-Bacon-Brothers-9-20-2024'],['The Bacon Brothers','Arcada Theatre','Saint Charles, IL','Saturday','9/21/2024','8:00 PM','6343996','The-Bacon-Brothers-9-21-2024']],'The Bacon Brothers','http://www.ticketnetwork.com/ticket/The-Bacon-Brothers-events.aspx');